from selenium import webdriver
from selenium.webdriver.common.by import By

class LoginPage():
    def __init__(self,driver):
        self.driver=driver
        # self.driver=webdriver.Chrome()

    username_locator=(By.ID,'username')
    password_locator=(By.ID,'password')
    verify_code_locator=(By.ID,'verify_code')
    sbtbutton_locator=(By.NAME,'sbtbutton')

    def login(self,username,password,verify_code):
        self.driver.find_element(*self.username_locator).send_keys(username)
        self.driver.find_element(*self.password_locator).send_keys(password)
        self.driver.find_element(*self.verify_code_locator).send_keys(verify_code)
        self.driver.find_element(*self.sbtbutton_locator).click()
















